set more 1
clear
u ${temp}\temp
replace cjsten=. if cjsten<0
mvdecode nch*, mv(-9)
mvdecode nch*, mv(-8)
mvdecode nch*, mv(-7)
mvdecode doid doim, mv(-9)
mvdecode jbstat, mv(-9)
mvdecode jbstat, mv(-1)
mvdecode jbstat, mv(-7)
mvdecode race, mv(-7)
mvdecode race, mv(-8)
mvdecode race, mv(-9)
mvdecode race, mv(-2)
mvdecode mlstat, mv(-9)
mvdecode mlstat, mv(-2)
rename jbsoc soc
rename jbsic sic
rename jbsic92 sic92
rename jbsize size
rename jbsect sect
mvdecode soc sic sic92 sic_h sic92_h, mv(-8)
mvdecode soc sic sic92 sic_h sic92_h, mv(-9)
mvdecode soc sic sic92 sic_h sic92_h, mv(-7)
mvdecode soc sic sic92 sic_h sic92_h, mv(-2)
mvdecode soc sic sic92 sic_h sic92_h, mv(-1)
mvdecode size, mv(-1)
mvdecode size, mv(-2)
mvdecode size, mv(-7)
mvdecode size, mv(-8)
mvdecode size, mv(-9)
mvdecode jbhrs jbot*, mv(-9)
mvdecode jbhrs jbot*, mv(-8)
mvdecode jbhrs jbot*, mv(-7)
mvdecode jbhrs jbot*, mv(-2)
mvdecode jbhrs jbot*, mv(-1)
replace jbbgd=1 if jbbgd<0|jbbgd==.
replace jbbgm=7 if jbbgm==-1
mvdecode jbbg*, mv(-1)
mvdecode jbbg*, mv(-2)
mvdecode jbbg*, mv(-7)
mvdecode jbbg*, mv(-8)
mvdecode jbbg*, mv(-9)
replace jbbgm=1 if jbbgm==13
replace jbbgm=4 if jbbgm==14
replace jbbgm=7 if jbbgm==15
replace jbbgm=10 if jbbgm==16
mvdecode cjsbg*, mv(-1)
mvdecode cjsbg*, mv(-2)
mvdecode cjsbg*, mv(-7)
mvdecode cjsbg*, mv(-8)
mvdecode cjsbg*, mv(-9)
recode cjsbgm 13=1 14=4 15=7 16=10
mvdecode sect, mv(-1)
mvdecode sect, mv(-8)
mvdecode sect, mv(-9)
mvdecode tuin1, mv(-7)
mvdecode tuin1, mv(-8)
mvdecode tuin1, mv(-9)
mvdecode tuin1, mv(-1)
mvdecode tuin2, mv(-7)
mvdecode tuin2, mv(-8)
mvdecode tuin2, mv(-9)
mvdecode tuin2, mv(-2)
mvdecode tuin2, mv(-1)
mvdecode region, mv(-9)
mvdecode qfedhi, mv(-7)
mvdecode qfedhi, mv(-9)
mvdecode jtyid jlyid, mv(-7)
mvdecode jtyid jlyid, mv(-2)
mvdecode jtyid jlyid, mv(-1)
mvdecode jtyid jlyid, mv(-9)
mvdecode jbweeks, mv(-7)
mvdecode juweeks, mv(-7)
mvdecode jiweeks, mv(-7)
mvdecode jbweeks, mv(-9)
mvdecode juweeks, mv(-9)
mvdecode jiweeks, mv(-9)
mvdecode njbnew, mv(-7)
mvdecode njbnew, mv(-9)
mvdecode njbsp, mv(-7)
mvdecode njbsp, mv(-9)
mvdecode njusp, mv(-7)
mvdecode njusp, mv(-9)
mvdecode njisp, mv(-7)
mvdecode njisp, mv(-9)
mvdecode jbstatl, mv(-1)
mvdecode jbstatl, mv(-7)
mvdecode jbstatl, mv(-9)
mvdecode jbstatt, mv(-7)
mvdecode jbstatt, mv(-9)
mvdecode fihh*, mv(-7)
mvdecode f1*, mv(-7)
mvdecode f1*, mv(-9)
mvdecode scend feend fetype, mv(-9)
mvdecode scend feend fetype, mv(-7)
mvdecode scend feend fetype, mv(-8)
mvdecode scend feend fetype, mv(-2)
mvdecode scend feend fetype, mv(-1)

recode spjb -8=.
recode mastat -9/-1=.

/** starting date for current spell ***/
g jbbg=mdy(jbbgm,jbbgd,jbbgy+1900)

/** interview date ***/
g sept1=mdy(9,1,wave+1990)

